package com.innodata.riskEngine.common.pojo;

import java.util.Objects;

/**
 * @Author: liboshuai
 * @Date: 2023-10-27 22:41
 **/
public class WindowPO {
    /**
     * 窗口开始时间（yyyy-MM-dd）
     */
    private String windowStartTime;
    /**
     * 窗口结束时间（yyyy-MM-dd）
     */
    private String windowEndTime;
    /**
     * 业务数据对象
     */
    private SourcePO sourcePO;

    //  setter and getter
    public String getWindowStartTime() {
        return windowStartTime;
    }

    public void setWindowStartTime(String windowStartTime) {
        this.windowStartTime = windowStartTime;
    }

    public String getWindowEndTime() {
        return windowEndTime;
    }

    public void setWindowEndTime(String windowEndTime) {
        this.windowEndTime = windowEndTime;
    }

    public SourcePO getSourcePO() {
        return sourcePO;
    }

    public void setSourcePO(SourcePO sourcePO) {
        this.sourcePO = sourcePO;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WindowPO windowPO = (WindowPO) o;
        return Objects.equals(windowStartTime, windowPO.windowStartTime) && Objects.equals(windowEndTime, windowPO.windowEndTime) && Objects.equals(sourcePO, windowPO.sourcePO);
    }

    @Override
    public int hashCode() {
        return Objects.hash(windowStartTime, windowEndTime, sourcePO);
    }

    @Override
    public String toString() {
        return "WindowPO{" +
                "windowStartTime='" + windowStartTime + '\'' +
                ", windowEndTime='" + windowEndTime + '\'' +
                ", sourcePO=" + sourcePO +
                '}';
    }
}
